from django.conf.urls import url,include
from tea_admin import views

urlpatterns = [
    # 测试
    url(r'^home/', views.home),
    url(r'^test/',views.test,name='test'),
    #首页
    url(r'^index/',views.index,name="index"),
    #登录
    url(r'^tlogin/',views.tlogin,name="tlogin"),
    #修改密码
    url(r'^edit_pwd/',views.edit_pwd,name="edit_pwd"),
    #退出登录
    url(r'^logout/',views.logout,name="logout"),
    #考勤管理
    url(r'^kaoqin_gl/',views.kaoqin_gl,name="kaoqin_gl"),
    #考勤管理编辑
    url(r'^kaoqin_edit/(?P<edit_id>\d+)',views.kaoqin_edit,name="kaoqin_edit"),
    #考勤管理删除
    url(r'^kaoqin_del/',views.kaoqin_del,name="kaoqin_del"),
    #请假管理
    url(r'^askleave/',views.askleave,name="askleave"),
    #请假管理编辑
    url(r'^askleave_edit/(?P<edit_id>\d+)',views.askleave_edit,name="askleave_edit"),
    #请假管理删除
    url(r'^askleave_del/',views.askleave_del,name="askleave_del"),
    #课程表展示
    url(r'^showcourse/',views.showcourse,name="showcourse"),
    #课室创建
    url(r'^classcreate/',views.classcreate,name='classcreate'),
    #课室管理
    url(r'^classmanage/',views.classmanage,name='classmanage'),
    #查看课室创建
    url(r'^checkclass/',views.checkclass,name='checkclass'),
    #考勤查询搜索框
    url(r'^kaoqinsearch/',views.kaoqinsearch,name='kaoqinsearch'),
    #请假查询搜索框
    url(r'^askleavesearch/',views.askleavesearch,name='askleavesearch'),
    #注册
    # url(r'^tregister/',views.tregister)
]

